//
//  BaseNetworkRequest+GetGuangChiFeedCategory.m
//  ShiWuPai
//
//  Created by app on 16/11/24.
//  Copyright © 2016年 QQ:244987427. All rights reserved.
//

#import "BaseNetworkRequest+GetGuangChiFeedCategory.h"
#import <YYModel.h>

 NSString *const kFeedCategorysPath=@"feed_categories";

@implementation BaseNetworkRequest (GetGuangChiFeedCategory)

+(void)getGuangChiFeedCategorySuccess:(void(^)(WHTitleCategory *titleCategory,NSError *error))completionHandler{
    [self rquestWithType:@"GET" Path:kFeedCategorysPath Parameters:nil success:^(id responseObj, NSError *error) {
        if (!error) {
            WHTitleCategory *resultTitleCategory=[WHTitleCategory yy_modelWithJSON:responseObj];
            completionHandler(resultTitleCategory,nil);
        }
        else{
            completionHandler(nil,error);
        }
    }];
}
@end
